{include file="public_head" /}

<!-- datatables -->
<link href="__STATIC__/js/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>
<!-- chk_3 -->
<link href="__STATIC__/css/chk_3.css" rel="stylesheet" type="text/css"/>

<body class="nav-md">

<div class="container body">


    <div class="main_container">

        {include file="public_sidebar,public_nav" /}

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>

                        </h3>
                    </div>
                </div>
                <div class="clearfix"></div>

                <div class="row">

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>出库管理</h2>

                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <form name="form" id="form" method="post" action="">
                                    <table style="border-bottom:1px solid #ddd;"
                                           class="table table-striped table-bordered table-hover">
                                        <thead>
                                        <tr class="success">
                                            <!--<th style="width: 2%; padding: 10px;">-->
                                            <!--<input type="checkbox" class="checkall"-->
                                            <!--onclick="CheckAll(this.checked);"/>-->
                                            <!--</th>-->
                                            <!--<th>排序</th>-->
                                            <th width="30">ID</th>
                                            <th width="">商品名称</th>
                                            <th width="">属性值</th>
                                            <th width="">属性库存</th>

                                            <!--<th>是否启用</th>-->
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        {empty name="data"}
                                        <tr><td colspan="5"><div style='font-size:24px;margin:30px 0;'>没有找到记录</div></td></tr>
                                        {/empty}

                                        {volist name="data" id="item"}

                                        <tr>
                                            <td rowspan="9" style="line-height:{:bcmul(28,$item.count)}px;border-right:1px solid #ddd;">{$item.id}</td>
                                            <td rowspan="9" style="line-height:{:bcmul(28,$item.count)}px;border-right:1px solid #ddd;">{$item.title}</td>
                                             {volist name="item.list" id="li"}
                                            <tr>
                                            <td>{$li.attribute}</td>
                                            <td>{$li.inventory}</td>
                                            <td><a  style="margin-right:10px;" href="{:url('ShopGoods/ruku', ['id' => $li['id'],'goods_id' => $item['id'],'attribute' => $li['attribute'],'inventory' => $li['inventory']])}"
                                                   class="label label-primary">
                                                <span class="fa fa-pencil"></span>&nbsp;&nbsp;入库
                                            </a><a href="{:url('ShopGoods/chuku_shop', ['id' => $li['id'],'goods_id' => $item['id'],'attribute' => $li['attribute'],'inventory' => $li['inventory']])}"
                                                   class="label label-primary">
                                                <span class="fa fa-pencil"></span>&nbsp;&nbsp;出库
                                            </a></td>
                                            </tr>
                                             {/volist}
                                        </tr>

                                        {/volist}
                                        </tbody>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
        <!-- /page content -->
    </div>

</div>

{include file="public_foot" /}
<!-- public -->
<script src="__STATIC__/js/public.js"></script>
<!-- layer -->
<script src="__STATIC__/js/layer.js"></script>